#include "../Common/Log.hpp"
#include "ThreadPool.hpp"
#include "../Common/Task.hpp"
#include <memory>

using namespace LogModule;
using namespace ThreadPoolModule;

int main()
{
    Enable_Console_Log_Strategy();
    auto tp = ThreadPool<task_t>::GetInstance();
    int count = 3;
    while (count)
    {
        tp->Enqueue(Download);
        sleep(1);
        count--;
    }
    tp->Stop();
    tp->Join();
    return 0;
}